package com.zty.xiaomi.server.Service.Tribunal;

import com.zty.xiaomi.server.Entity.Evidence.Evidence;
import com.zty.xiaomi.server.Entity.Tribunal.Tribunal;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.List;

@Component
public interface TribunalService {
    int addTribunal(Tribunal tribunal) throws IOException;

    List<Tribunal> getTribunalsByStatus(int status) throws IOException;

    int updateTribunalUserVoteById(int tribunal) throws IOException;

    int updateTribunalStoreVoteById(int tribunal) throws IOException;

    int updateTribunalResultAndStatusById(int tribunal_id, String result, int status) throws IOException;

    Tribunal getTribunalDetailById(int tribunal_id) throws IOException;

    List<Tribunal> getMyTribunalByUserName(String user_name) throws IOException;

    List<Tribunal> getAllTribunal() throws IOException;

    //    法庭关闭
    int updateTribunalStatusById(int tribunal_id);
}
